Re: [NTG-context] \placeinitial doesn't work inside \framedtext (or \framed)

2023-05-16 Thread 李延瑞
nitial\input knuth > > \framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input > knuth > } > > \framedtext[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input > knuth > } > > \stoptext > %== > > There is a wor

Re: [NTG-context] Can I use \starthangaround?

2022-12-01 Thread Wolfgang Schuster via ntg-context
that \starthangaround is undefined. It isn’t in any of my context installation files, including cont-new.tex. I'm using LMTX, installed a few days ago. Is it possible for me to use \starthangaround ? The environment was renamed a few years ago to \starthanging. Wolfgang

Re: [NTG-context] Bug (?) with \placefigure[right]

2022-08-16 Thread Wolfgang Schuster via ntg-context
, for each contributor to a book. So any suggestions on how to wrap text around the photo that avoids this issue would be welcome. \setuppapersize [A5] [A5] \starttext \dorecurse{12}   {\subject{Some heading}    \starthanging[right]{\externalfigure[cow.pdf][width=3cm]}    \samplefile{lorem

Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
[6*left,right] \samplefile{tufte} \CrappyTraced \stopnarrower \starthanging [distance=4em,n=2] {test} \samplefile{tufte} \CrappyTraced \stophanging \page % \stoptext \setuppapersize[landscape,letter] \samplefile{knuth} \CrappyTraced \startitemize[width=5em] \startitem \samplefile{knuth}

Re: [NTG-context] very long hanging caption

2021-05-07 Thread Hans Hagen
On 5/7/2021 11:55 AM, Jano Kula wrote: Hello again, does somebody have any hint on the long captions? Ok, after a week of struggling with this you deserve an answer: \starttext \starthanging {\framed[align=normal,bottom=\vkern10pt]{\externalfigure[t:/sources/cow.pdf][width=3cm

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Pablo Rodriguez
On 4/8/20 11:32 AM, Fabrice Couvreur wrote: > [...] > \startframedtext[width=max,background=color,backgroundcolor=fondpaille] >      \starthanging[location=right] >          {\startMPcode >           draw unitsquare scaled 2cm ; >           \stopMPcode} >      \input tuft

Re: [NTG-context] Background color of a framedtext that covers floats

2020-04-08 Thread Fabrice Couvreur
Hi Pablo, Here a sample. Fabrice \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \starttext \startframedtext[width=max,background=color,backgroundcolor=fondpaille] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-18 Thread Henning Hraban Ramm
Salut, do maybe combinations fit your needs? https://wiki.contextgarden.net/Combinations Best, Hraban > Am 2019-11-17 um 11:01 schrieb Fabrice Couvreur : > > Hello, > I am looking but without success ! > I tried \ starthanging [location = right] {tree} \ stophanging but that d

Re: [NTG-context] Text and tree side by side in a framedtext environment

2019-11-17 Thread Fabrice Couvreur
Hello, I am looking but without success ! I tried \ starthanging [location = right] {tree} \ stophanging but that does not work either. Fabrice Le sam. 16 nov. 2019 à 12:44, Fabrice Couvreur a écrit : > Hello, > I want to use a text frame to put text and a probability tree side by

Re: [NTG-context] Sidefloats inside framed

2019-09-15 Thread Wolfgang Schuster
][width=.5\hsize] \stopplacefigure \samplefile{lorem} \stopframed \stoptext \starttext \startframed[align={width,tolerant},width=max,lines=20,offset=0pt]     \starthanging{\externalfigure[dummy][width=.5\hsize]}     \samplefile{lorem}     \stophanging \stopframed \stoptext Wolfgang

[NTG-context] Graphics gets extra indent if hanging in list

2018-06-11 Thread Mikael P. Sundqvist
\starthanging[location=right]{\blackrule[color=darkgreen,width=1in,height=0.5in]} \input ward \stophanging \startitemize[n] \item \starthanging[location=right]{\blackrule[color=darkred,width=1in,height=0.5in]} \input ward \stophanging \stopitemize \stoptext hang.pdf Description: Adobe PDF document

[NTG-context] Best way to prevent wrong column/page break with par starting with \starthanging

2015-11-19 Thread josephcanedo
Dear all, I am using \starthanging to implement dropcaps (with small pdf files). I use this Inside mixedcolumns (2 columns). I’d like to know if there is a better way than \testcolumn[N], N being the number of lines of the dropcap, to prevent the location of dropcap being cut between end

[NTG-context] Dropcaps in ConTeXt

2015-10-27 Thread josephcanedo
\starthanging{\externalfigure[D1.pdf]} This is a first paragraph.\\ % how to have \par here ? \input tufte \stophanging \lettrine[Image=yes, Lines=4, Nindent=0pt, Findent=0.5em]{D1.pdf} % avoid Lines and use actual figure size ? This is a first paragraph.\\ % how to have \par here ? \input tufte

Re: [NTG-context] \hangindent and R2L alignment

2015-09-23 Thread Hans Hagen
On 9/23/2015 10:15 PM, Wolfgang Schuster wrote: Hi, there was a question on the Stackexchange site [*] with a problem for the \starthanging environment when the alignment is R2L. \def\spac_hanging_finish {\scratchdistance\directhangingparameter\c!distance\relax \ifdim\ht\nextbox>\stru

[NTG-context] \hangindent and R2L alignment

2015-09-23 Thread Wolfgang Schuster
Hi, there was a question on the Stackexchange site [*] with a problem for the \starthanging environment when the alignment is R2L. Here is shortened version of the example: begin example \useMPlibrary[dum] \starttext \starthanging[location=left]{\externalfigure[dummy][width=4cm,height

Re: [NTG-context] Text around a figure in a framedtext

2015-08-14 Thread Fabrice Couvreur
Hi Rik, I actually read that Wolfgang had written, but there is some confusion for me. Indeed, my environment uses a frame and Wolfgang said to be used \ starthanging ... \stophanging rather than \placefigure. But my text contains a blank line which is to create a new paragraph and so I should use

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
\starttext \startMyText \starthanging[location=right] {\startMPcode path p ; p := fullcircle xscaled 4cm yscaled 2cm ; fill p withcolor cmyk(0,0.62,1,0) ; path q ; q := fullcircle scaled 1cm shifted (1cm, ypart center p) ; fill q withcolor

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Fabrice Couvreur
) ; b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ; fill OverlayBox withcolor \MPcolor{MyColorA} ; fill b withcolor \MPcolor{MyColorB} ; draw p ; \stopuseMPgraphic \starttext \startMyText \starthanging[location=right] {\startMPcode path p

Re: [NTG-context] Text around a figure in a framedtext

2015-08-13 Thread Rik Kabel
\MPcolor{MyColorB} ; draw p ; \stopuseMPgraphic \starttext \startMyText \starthanging[location=right] {\startMPcode path p ; p := fullcircle xscaled 4cm yscaled 2cm ; fill p withcolor cmyk(0,0.62,1,0) ; path q ; q := fullcircle scaled 1cm shifted

Re: [NTG-context] Text around a figure in a framedtext

2015-08-09 Thread Fabrice Couvreur
framedtext like the second framedtext ? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte

Re: [NTG-context] Text around a figure in a framedtext

2015-08-08 Thread Wolfgang Schuster
Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com 8. August 2015 00:49 Hi, Why the text does not move in the first framedtext like the second framedtext? You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Jeong Dal
Dear Wolfgang, You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max] \starthanging[location=right] {\startMPcode draw unitsquare scaled 2cm ; \stopMPcode} \input tufte \stophanging

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Otared Kavian
. then the text is wrapped around the figure when using \starthanging. Best regards: OK On 08 Aug 2015, at 15:49, Jeong Dal hak...@me.com wrote: Dear Wolfgang, You have to use \starthanging instead of \placefgure when you’re in a frame. \starttext \startframedtext[width=max

Re: [NTG-context] Text around a figure in a framedtext (Wolfgang Schuster)

2015-08-08 Thread Wolfgang Schuster
Jeong Dal mailto:hak...@me.com 8. August 2015 15:49 Dear Wolfgang, Thank you for letting me know the command “starthanging”. I tried the command “\startfiguretext … \stopfiguretext”, and found that there is no text below the square. \startframedtext[width=\textwidth]{ \startfiguretext[right

Re: [NTG-context] intermezzo/sidebarswith rounded corners.

2015-02-06 Thread Hans Hagen
, foregroundcolor=white, forgroundstyle=bold] \dorecurse {100} { \starthanging{\whatever{#1}} \input tufte \stophanging } \stoptext And rounded corners? you can either configure framed to do that or hook in some mp (see wiki

Re: [NTG-context] intermezzo/sidebarswith rounded corners.

2015-02-05 Thread Hans Hagen
or elsewhere? \starttext \defineframed [whatever] [width=1cm, height=1cm, background=color, backgroundcolor=darkblue, foregroundcolor=white, forgroundstyle=bold] \dorecurse {100} { \starthanging{\whatever{#1}} \input tufte

Re: [NTG-context] intermezzo/sidebarswith rounded corners.

2015-02-05 Thread John Culleton
, forgroundstyle=bold] \dorecurse {100} { \starthanging{\whatever{#1}} \input tufte \stophanging } \stoptext And rounded corners? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html Updated PDF e-book

Re: [NTG-context] intermezzo/sidebarswith rounded corners.

2015-02-05 Thread Wolfgang Schuster
, backgroundcolor=darkblue, foregroundcolor=white, forgroundstyle=bold] \dorecurse {100} { \starthanging{\whatever{#1}} \input tufte \stophanging } \stoptext And rounded corners? http://wiki.contextgarden.net/Framed

Re: [NTG-context] Problem with \starthanging ...\ stophanging

2014-04-25 Thread Fabrice
Hello, Aditya has proposed the following solution on a forum, it works perfectly. \definetextbackground [imagebackground] [ location=paragraph, background=color, backgroundcolor=white, frame=off, ] \starttext \startimagebackground

[NTG-context] Problem with \starthanging ...\ stophanging

2014-04-24 Thread Fabrice Couvreur
Hello, I can not run text around the figure. thank you, Fabrice \starttext \starthanging[location=right] {\externalfigure[image.pdf][width=8cm]} \input knuth \input knuth \stophanging \stoptext ___ If your question

[NTG-context] Table next to a text in an environment of type list

2014-03-29 Thread Fabrice Couvreur
][stopper=),style=bold] \item Recopier le tableau ci-contre. \startitemize[n][stopper=),style=bold] \setuphanging[location=right] \starthanging{% \bTABLE[align={middle,lohi}] \bTR\bTD {} \eTD \bTD {\bf Femmes} \eTD \bTD {\bf Hommes} \eTD \bTD {\bf Total} \eTD \eTR \bTR \bTD {\bf Cadres} \eTD \bTD {15

[NTG-context] Box flowed and hanging into the margin

2014-03-28 Thread Markus Finke
\starthanging{ \placefigure[here,none]{} {\startcombination[1*2] {\externalfigure[line.png][width=5cm]}{\tfx\input ward \endgraf} {\externalfigure[line.png][width=5cm]}{} \stopcombination} }\input knuth \stophanging \stoptext attachment

Re: [NTG-context] what happened to hangaround?

2014-03-24 Thread Philipp Gesang
environment: \setupexternalfigures [location=default] \starttext \starthanging{\externalfigure [cow.pdf][width=3.141cm]} \input ward \stophanging \stoptext I think it is supposed to be the successor to hangaround. Best regards, Philipp pgpWRYfPrrfSu.pgp

Re: [NTG-context] what happened to hangaround?

2014-03-24 Thread Henning Hraban Ramm
? Try the hanging environment: \setupexternalfigures [location=default] \starttext \starthanging{\externalfigure [cow.pdf][width=3.141cm]} \input ward \stophanging \stoptext I think it is supposed to be the successor to hangaround. Dankeschön! I updated the wiki

Re: [NTG-context] what happened to hangaround?

2014-03-24 Thread Wolfgang Schuster
in the garden), but it’s unknown in latest beta. Is there a replacement? Try the hanging environment: \setupexternalfigures [location=default] \starttext \starthanging{\externalfigure [cow.pdf][width=3.141cm]} \input ward \stophanging \stoptext I think it is supposed

Re: [NTG-context] what happened to hangaround?

2014-03-24 Thread Henning Hraban Ramm
Am 2014-03-24 um 14:11 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: - \starthanging doesn’t accept parameters (using \setuphanging for every second picture is evil) - As you can see in wiki, the picture stands on the first line of the text. This is a MkII problem, it works

Re: [NTG-context] what happened to hangaround?

2014-03-24 Thread Aditya Mahajan
On Mar 24, 2014, at 4:43 AM, Henning Hraban Ramm te...@fiee.net wrote: Am 2014-03-24 um 14:11 schrieb Wolfgang Schuster schuster.wolfg...@gmail.com: - \starthanging doesn’t accept parameters (using \setuphanging for every second picture is evil) - As you can see in wiki, the picture

Re: [NTG-context] \starthanging and hangafter

2014-03-03 Thread Alan Bowen
Thanks, Thangalin. I did not know of \hangsidefloat and \movesidefloat and can see that they will very useful in combination with \placefigure in the body text, when I need text to flow over and below images at the side. The problem is that \placefigure[right or left] does not work in footnotes.

Re: [NTG-context] \starthanging and hangafter

2014-03-03 Thread Wolfgang Schuster
Am 02.03.2014 um 21:19 schrieb Alan Bowen bowenala...@gmail.com: A follow up, if I may. Unlike \starthanging..\stophanging which behaves in the same way in both body text and footnotes, \placefigure does not. In footnotes, \olacefigure adds an opening blank line and runs the text

Re: [NTG-context] \starthanging and hangafter

2014-03-03 Thread Alan Bowen
Thanks, Wolfgang--it does help to know when one is asking too much of ConTeXt. Alan On Mon, Mar 3, 2014 at 11:28 AM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 02.03.2014 um 21:19 schrieb Alan Bowen bowenala...@gmail.com: A follow up, if I may. Unlike \starthanging

Re: [NTG-context] \placefigure[right or left] failing in footnotes

2014-03-03 Thread Alan Bowen
Again, thanks. My tests so far indicate that the only way to go in footnotes is with \starthanging[location-right]...\stophanging--and to be happy with the output as it is (which is quite nice, when all is said and done). Alan On Mon, Mar 3, 2014 at 11:24 AM, Wolfgang Schuster schuster.wolfg

Re: [NTG-context] \starthanging and hangafter

2014-03-02 Thread Alan Bowen
A follow up, if I may. Unlike \starthanging..\stophanging which behaves in the same way in both body text and footnotes, \placefigure does not. In footnotes, \olacefigure adds an opening blank line and runs the text through the image. It does, however, seem to place the image better. An example

Re: [NTG-context] \starthanging and hangafter

2014-03-02 Thread Thangalin
Hi Alan, From the archives: http://www.ntg.nl/pipermail/ntg-context/2006/015481.html The \hangsidefloat and \movesidefloat commands may prove useful. Once you have a simple working example, post it to this thread and I'll update the wiki.

[NTG-context] \starthanging and hangafter

2014-02-28 Thread Alan Bowen
I am using using \starthanging...\stophanging to embed a small image in a paragraph in a footnote. Currently, I have a pattern like: xx xx xx xx

Re: [NTG-context] \starthanging and hangafter

2014-02-28 Thread Thangalin
Hi Alan, Please post your code. On Fri, Feb 28, 2014 at 6:54 AM, Alan Bowen bowenala...@gmail.com wrote: I am using using \starthanging…\stophanging to embed a small image in a paragraph in a footnote. Currently, I have a pattern like: xx xx

Re: [NTG-context] \starthanging and hangafter

2014-02-28 Thread Alan Bowen
Hi, Thangalin-- Right now I am working with this minimal example : \setupexternalfigures[location={local,default}] \starttext text text.% % \footnote{\starthanging[location={right}] {\externalfigure[cow][width=.1\textwidth]} \dorecurse{2}{\input ward} \stophanging} \stoptext Alan On Fri, Feb

[NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Peter Sienkowski
able to fix this. I've been using something like: \starthanging{ \placefigure[force][fig:first]{Caption 1} {\externalfigure[first-figure][width=\textwidth]}} \inother[width=5cm]{Some text for the other bit} \stophanging \starthanging{ \placefigure[force][fig:first]{Caption 2} {\externalfigure

Re: [NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Wolfgang Schuster
. I'm new to ConTeXT and have looked at the Details Manual but have not been able to fix this. I've been using something like: \starthanging{ \placefigure[force][fig:first]{Caption 1} {\externalfigure[first-figure][width=\textwidth]}} \inother[width=5cm]{Some text for the other bit

Re: [NTG-context] Overlapping \starthanging \stophanging with side captions

2013-04-15 Thread Peter Sienkowski
-in-the-margin-next-to-a-figure-using-context Using \starthanging \stophanging put the text in the correct place but then the figures ran into each other. regards Pete ___ If your question is of interest to others as well

Re: [NTG-context] Misbehaving \starthanging\stophanging

2013-01-21 Thread Hans Hagen
On 1/19/2013 12:06 PM, Alan BRASLAU wrote: Hello, \starthanging\stophanging is a very appreciated feature. However, hanging text wrapped around a figure fails if a new paragraph intervenes. Minimal example: \starttext \starthanging [location=right] {\externalfigure [cow] [width=.3\textwidth

Re: [NTG-context] Misbehaving \starthanging\stophanging

2013-01-21 Thread Alan BRASLAU
On Mon, 21 Jan 2013 19:48:09 +0100 Hans Hagen pra...@wxs.nl wrote: On 1/19/2013 12:06 PM, Alan BRASLAU wrote: Hello, \starthanging\stophanging is a very appreciated feature. However, hanging text wrapped around a figure fails if a new paragraph intervenes. Minimal example

[NTG-context] Misbehaving \starthanging\stophanging

2013-01-19 Thread Alan BRASLAU
Hello, \starthanging\stophanging is a very appreciated feature. However, hanging text wrapped around a figure fails if a new paragraph intervenes. Minimal example: \starttext \starthanging [location=right] {\externalfigure [cow] [width=.3\textwidth]} This is a first paragraph. \input tufte

Re: [NTG-context] Q about hangaround commands

2012-12-06 Thread Hans Hagen
Hi, I combined some functionality into: \showframe \starttext \starthanging{\externalfigure[cow][scale=500]} \input tufte \stophanging \blank \starthanging[right]{\externalfigure[cow][scale=500]} \input tufte \stophanging \blank \starthanging[location=right,n=2,distance=1cm

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
# \startFLOWcell \stopFLOWcell # \startFLOWchart \stopFLOWchart \startformula \stopformula # \startframedcontent \stopframedcontent \startframedtext[left|right|middle|none][settings] \stopframedtext # \startfrontmatter \stopfrontmatter # \starthanging \stophanging \starthiding \stophiding

[NTG-context] Again: hanging for a lot of paragraphs?

2004-02-18 Thread Steffen Wolfrum
there is \starthanging \stophanging and \hangafter=1 \hangindent=1em . Both commands need to be added to each affected paragraph again and again, right? Is there a way to have this hanging first line for a series of paragraphs - with just a kind of \starthangingarea aa

[NTG-context] hanging for a lot of paragraphs?

2004-02-12 Thread Steffen Wolfrum
Hi, I know there is \starthanging \stophanging and \hangafter=1 \hangindent=1em . Both commands need to be added to each affected paragraph again and again, right? Is there a way to have this hanging first line for a series of paragraphs - with just a kind of \starthangingarea

[NTG-context] Re: Indenting all lines in a paragraph, first line excluded

2003-11-13 Thread Patrick Gundlach
and following lines indented by the width of the first word (or more) of the first line, you can use: \starthanging {Lorem} ipsum dolor sit amet, consectetuer adipiscing elit. Donec hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus

[NTG-context] Again: \indenting[*hang*] ?!

2003-09-22 Thread Steffen Wolfrum
; there is \starthanging ... \stophanging now Ah! but ... if we can assume that users start tagging their paragraphs with \bpar .. \epar i can imagine that we provide something \indenting [hang], so the question is: are you willing to tag imo, the question is: what has hanging to do

[NTG-context] Re: Again: \indenting[*hang*] ?!

2003-09-22 Thread Patrick Gundlach
Steffen Wolfrum [EMAIL PROTECTED] writes: There is always another surprise in ConTexT. I mean: How should I know? I didn't know either. :-) My sources are Hans's manuals + the list-archiv. Neither in the manuals nor in the archive \setuphanging or \starthanging is mentioned... Use

Re: [NTG-context] \indenting[*hang*] ?!

2003-09-19 Thread Jens-Uwe Morawski
is ment by \indenting[next], but \indenting[next] seems to be exactly the same as \indenting[first], is this right? kind of tricky, since settings to hangindent and alike are forgotten when the setup is followed by an empty line; there is \starthanging ... \stophanging now but ... if we

Re: [NTG-context] \indenting[*hang*] ?!

2003-09-19 Thread Steffen Wolfrum
; there is \starthanging ... \stophanging now Ah! but ... if we can assume that users start tagging their paragraphs with \bpar .. \epar i can imagine that we provide something \indenting [hang], so the question is: are you willing to tag imo, the question is: what has hanging to do